package tests;


import static org.junit.Assert.*;
import firewall.*;

import org.junit.Before;
import org.junit.Test;
import junit.framework.TestCase;
import junit.framework.Assert;

import org.junit.Test;

import firewall.Paquete;
import firewall.ReglaEspecificaIp;
import firewall.ReglaEspecificaPuerto;

public class TestMapPuertoIp extends TestContenedor {

	
	@Before
	
	
	public void setUp(){
	super.setUp();
	
	this.reglaIp1.agregarAlDiccionarioOrigen("190", 30);
	
	this.reglaIp2.agregarAlDiccionarioDestino("192", 30);	

		
	}
	
	
	@Test
	
	public void testMatchea() {
		
		
		assertFalse(this.reglaIp1.matchea(this.paquete));
		assertFalse(this.reglaIp2.matchea(this.paquete));
		
	}
}
